#include("/include/pageForm.html",action="org/payorder/search")
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="org/payorder/search" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>批次号：</label>
				<input type="text" name="batchNo" value="#(batchNo)"/>
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			#auth()
				<li><a class="add" href="org/payorder/addPage" target="dialog" rel="zhidan"><span>制单</span></a></li>
			#end
		</ul>
	</div>

	<div id="w_list_print">
	<table class="list" style="width: 98%" targetType="navTab" asc="asc" desc="desc" layoutH="116">
		<thead>
			<tr>
				<th width="100">批次号</th>
				<th width="100">代付商户</th>
				<th width="100">总金额(元)</th>
				<th width="120">总笔数</th>
				<th width="120">状态</th>
				<th width="160">创建时间</th>
				<th width="160">操作</th>
			</tr>
		</thead>
		<tbody>
			#for(item:items)
				<tr target="sid" rel="#(item.id)">
					<td>#(item.batchNo )</td>
					<td>#(item.merchName)</td>
					<td>#number(item.totalAmount.toDouble() / 100,"##,###,##0.00")</td>
					<td>#(item.totalNumber )</td>
					<td>
						#if(item.isConfirm)
							<font color="green">已确认,结果看明细</font>
						#else
							<font color="blue">待确认</font>
						#end
					</td>
					<td>#(item.createDateTime )</td>
					<td>
						<a href="org/payorder/searchItem?batchNo=#(item.batchNo)" target="dialog" width="900" height="500" mask="true">单据明细</a>
						
						#if(item.isConfirm == false)
							#auth()
								<a href="org/payorder/remove?batchNo=#(item.batchNo)" target="ajaxTodo" title="确定要删除吗？">删除</a>
							#end	
						#end
						
					</td>
				</tr>
			#end
		</tbody>
	</table>
	</div>
	
	#include("/include/page.html")

</div>
